<?php
/**
 * Row.php
 *
 * @category    Madoqua
 * @package     Module
 * @subpackage  Blog
 */

/** base class */
require_once 'Zend/Db/Table/Row.php';

/** lucene indexer */
require_once 'Madoqua/Search/Indexer.php';

/**
 * Blog_Page_Row
 *
 * @category    Madoqua
 * @package     Module
 * @subpackage  Blog
 */
class Blog_Page_Row extends Zend_Db_Table_Row
{
    /**
     * post insert hook
     */
    protected function _postInsert() {
        Madoqua_Search_Indexer::indexPage($this);
    }

    /**
     * post update hook
     */
    protected function _postUpdate() {
        Madoqua_Search_Indexer::indexPage($this);
    }
}